package com.wesoft.tags;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.TagSupport;

public class MyTagTest extends TagSupport {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private PageContext pageContext;
	
	
	@Override
	public void setPageContext(PageContext pageContext) {
		this.pageContext = pageContext;
	}
	
	
	
	@Override
	public int doStartTag() throws JspException {
		try{
			pageContext.getResponse().getWriter().write("自定义标签");
		}catch(Exception e){
			throw new RuntimeException();
		}
		return super.doStartTag();
	}

}
